<#assign ctx=request.contextPath />
<#import '${ctx}/sys/include/head.html' as d />
<#import '${ctx}/sys/include/info.html' as i />
<!DOCTYPE html>
<html>
<head><@d.head title="任务详情" />
</head>
<div class="layui-form">
	<div class="layui-form-item">
		<button id="fresh" class="layui-btn layui-btn-primary">刷新</button>
		<div class="layui-input-block">
			<pre id="out" class="layui-textarea">
			</pre>
		</div>
	</div>
</div>
<script type="text/javascript">
layui.use(['form','layer'],function(){
	var form = layui.form;
	var layer = layui.layer;
	var $ = layui.$;
	
	var id = '${RequestParameters.id!}';
	
	
	$("#fresh").bind('click',function(){
		$.post("${ctx}/biz/etl/showForeach",{mode:"local",id:id},function(data){
			if(data.code == 0) {
				$("#out").html(data.values.data);
			}else {
				layer.msg(data.code+":"+data.msg)
			}
		});
	});
});
</script>
</html>